<?php

/**
 * User setting Config Class to handle all SGN user setting type
 *
 * @version $Id: Application.php 1424 2012-03-03 08:15:52Z locth $
 *
 */
class SGN_SettingConfig
{
    static $NOTIFICATION = array(
                                'id' => 1, 
                                'default' => array(
                                                'DesktopNotification' => 'yes', 
                                                'StatusUpdate' => 'yes', 
                                                'ChatNotify' => 'yes'
                                ), 
                                'editable' => true, 
                                'renderAction' => array(), 
                                'javaScriptFile' => array()
    );
    static $WALLFEED_TICKER = array(
                                    'id' => 2, 
                                    'default' => array(
                                                    'ShowTicker' => 'yes'
                                    ), 
                                    'editable' => false, 
                                    'renderAction' => array(), 
                                    'javaScriptFile' => array()
    );
    static $GC_NOTIFICATION = array(
                                    'id' => 3, 
                                    'default' => array(
                                                    'UnreadNotification' => 0
                                    ), 
                                    'editable' => false, 
                                    'renderAction' => array(), 
                                    'javaScriptFile' => array()
    );
    static $GAME_CHARACTERS = array(
                                    'id' => 4,
                                    'default' => array(),
                                    'editable' => false,
                                    'renderAction' => array(),
                                    'javaScriptFile' => array()
    );
    static $WALLFEED_PASTECLIPBOARD_SHOWDAY = array(
                                    'id' => 5,
                                    'default' => array("ShowTutorial" => -1),
                                    'editable' => false,
                                    'renderAction' => array(),
                                    'javaScriptFile' => array()
    );
    static $MAP_ID = array(
                        1 => 'NOTIFICATION',
                        2 => 'WALLFEED_TICKER', 
                        3 => 'GC_NOTIFICATION',
                        4 => 'GAME_CHARACTERS',
                        5 => 'WALLFEED_PASTECLIPBOARD_SHOWDAY'
    );

    static function getConfig($id)
    {
        $class = new ReflectionClass('SGN_SettingConfig');
        $settingTypes = $class->getStaticProperties();
        return $settingTypes[self::$MAP_ID[$id]];
    }
}